package com.rubiksillusions;

public class RubiksCubeTest {
	public static void main(String[] args) {
		RubiksCube rubiksCube = new RubiksCube("wwwwwwwwwooooooooogggggggggbbbbbbbbbyyyyyyyyyrrrrrrrrr");
		
		
		/*
		System.out.println(rubiksCube.getFaceletsString());
		rubiksCube.executeMovesList("F", true);
		System.out.println(rubiksCube.getFaceletsString());
		*/
		
		
		/*
		for (int i = 0; i < 27; i++) {
			System.out.print("" + i + ": " + rubiksCube.getCubeletFromIdealPosition(i).getNumber());
			System.out.print(" IsWellOriented: " + rubiksCube.isWellOriented(i));
			System.out.print(" IsWellPlaced: " + rubiksCube.isWellPlaced(i));
			System.out.println();
		}
		
		System.out.println("Ruoto il Cubo");
		rubiksCube.executeMovesList("Z X Y", true);
		
		
		for (int i = 0; i < 27; i++) {
			System.out.print("" + i + ": " + rubiksCube.getCubeletFromIdealPosition(i).getNumber());
			System.out.print(" IsWellOriented: " + rubiksCube.isWellOriented(i));
			System.out.print(" IsWellPlaced: " + rubiksCube.isWellPlaced(i));
			System.out.println();
		}
		
		System.out.println(Utilities.getSolveCrossMoves("rgwwwggrooogbygbyywggwgwboogybbbyybwbrrooowwroyyrrbyrr"));
		System.out.println(Utilities.solveThreeCorners("rgwwwggrooogbygbyywggwgwboogybbbyybwbrrooowwroyyrrbyrr"));
		
		/*
		for (int i = 0; i < 27; i++) {
			System.out.print("{ ");
			int[] temp = rubiksCube.getCubelet(i).getFaceletColorsArray();
			for (int j = 0; j < 6; j++) {
				System.out.print(temp[j]);
				if (j != 5) System.out.print(", ");
			}
			System.out.print("},\n");
		}
		System.out.println(rubiksCube.getFaceletsString());
		rubiksCube.executeMovesList("Z", true);
		System.out.println(rubiksCube.getFaceletsString());
		*/
	}
}
